/******************************************************************************
  * @file     SD93F115B_buz.h
  * @author   TEST TEAM													    	
  * @version  v0															    	
  * @date     Septemper 2022												    	
  * @brief   
  *           
  * Copyright (C) 2022  Hangzhou SDIC Microelectronics Co., Ltd
******************************************************************************/


/* Define to prevent recursive inclusion */
#ifndef __SD93F115B_BUZ_H
#define __SD93F115B_BUZ_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes*/
#include "SD93F115B.h"


/* Exported types */
#ifdef SD93F115B_JQS
#define IS_BUZ_ALL_PERIPH(PERIPH) (((PERIPH) == BUZ0)||((PERIPH) == BUZ1))
#endif
#ifdef SD93F115B_D
#define IS_BUZ_ALL_PERIPH(PERIPH) (((PERIPH) == BUZ0)||((PERIPH) == BUZ1))
#endif
#ifdef SD93F115B_JBS
#define IS_BUZ_ALL_PERIPH(PERIPH) ((PERIPH) == BUZ1)
#endif
#ifdef SD93F115B_IMR
#define IS_BUZ_ALL_PERIPH(PERIPH) ((PERIPH) == BUZ1)
#endif

#define IS_BUZ_BUZCLKS_DIV(DIV) (((DIV) >=0x00)||((DIV) <= 0xff))


/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void BUZ_DeInit(BUZ_TypeDef * BUZx);                                    //将BUZ相关寄存器值重设为上电默认值	
void BUZ_SetOutFrequency(BUZ_TypeDef * BUZx ,uint8_t BUZCLKSDIV);		//设置BUZ的输出频率									 
void BUZ_Cmd(BUZ_TypeDef * BUZx ,FunctionalState NewState);			    //使能BUZ
void BUZB_Cmd(BUZ_TypeDef * BUZx,FunctionalState NewState);			    //使能BUZB


#ifdef __cplusplus
}
#endif

#endif /* __SD93F115B_BUZ_H */

/*****************************END OF FILE********************************/